<template>
  
<div id="nav">
      <router-link to="/">todoList</router-link>
      <router-link to="/about">About</router-link>
</div>
<router-view></router-view>
  
  <!-- <img alt="Vue logo" src="./assets/logo.png" />
  <HelloWorld :msg="toChildrenData" /> -->
</template>

<script lang='ts'>
//import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App'
  // components: {
  //   HelloWorld
  // },
  /*
  data() {
    return {
      toChildrenData: {
      title: 'Hello vu3 + vite !',
      age: 22
    }
    }
  }
  */

  // setup(props){

  //   const toChildrenData = {
  //     title: 'Hello vu3 + vite +setup!',
  //     age: 22
  //   }
  //   return {
  //    toChildrenData
  //   }
  // }

}
</script>
<style lang="scss">
  #app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;
  a {
    padding: 10px;
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>